package algorithms.util;

public class Vertex {
    private int vertexNo; // vertex number, starting from 0
    private boolean visited;

    public Vertex(int vertexNo) {
        this.vertexNo = vertexNo;
        this.visited = false;
    }

    public void visit() {
        this.visited = true;
    }

    public boolean isVisited() {
        return this.visited;
    }

    public int getVertexNo() {
        return this.vertexNo;
    }
}
